package city.spring.modules.medicalstation.drugdeposit.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类：医护站药品缴存
 *
 * @author 谢金婷
 * @date 2020-10-13 11:44:37
 */
@Data
@TableName("drugdeposit")
public class DrugdepositEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 老人姓名
     */
    private String oldmanId;
    @TableField(exist = false)
    private String oldmanName;

    /**
     * 缴药时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date depositdate;

    /**
     * 缴药方式
     */
    private String depositmethod;

    /**
     * 登记人
     */
    private String registor;
    @TableField(exist = false)
    private String registorName;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtModified;
}